#######################################
# Environnement
#######################################
SAPSCRIPTS=/var/code/sap/scripts
#if [ -d ~/git/sap/scripts ]; then SAPSCRIPTS=~/git/sap/scripts; fi
LOADENV=$SAPSCRIPTS/loadenv.sh
if [ -f $LOADENV ]; then . $LOADENV; else echo "No env library ($LOADENV)"; fi
#######################################
if [ -x /usr/bin/vim ]; then export EDITOR=/usr/bin/vim; alias vi='/usr/bin/vim'; fi
if [[ -x /usr/opt/freeware/bin/ls ]];then alias ls='/usr/opt/freeware/bin/ls --color';fi
if [[ -x /usr/opt/freeware/bin/grep ]];then alias grep='/usr/opt/freeware/bin/grep --color=auto';fi
if [[ -x /usr/opt/freeware/bin/egrep ]];then alias egrep='/usr/opt/freeware/bin/egrep';fi
if [[ -x /usr/opt/freeware/bin/cat ]];then alias cat='/usr/opt/freeware/bin/cat';fi
if [[ -x /opt/freeware/bin/tar ]];then alias tar='/usr/opt/freeware/bin/tar';fi
function be { sudo -i -u $@ ZDOTDIR=/sapnfs/b0528817 `which zsh`; }
alias ffi='find_frame_info.sh -h '
alias ltr='ls -ltra'
alias btsenv='. ~HOME/bts/btsenv'
alias beroot='sudo -i ZDOTDIR=/sapnfs/b0528817 `which zsh`'
alias bedom='sudo -i -u b0527740'
command -v /usr/bin/mysql/mysql > /dev/null 2>&1 && alias mysql=/usr/bin/mysql/mysql
command -v /opt/freeware/bin/mysql/mysql > /dev/null 2>&1 && alias mysql=/opt/freeware/bin/mysql/mysql
command -v /usr/bin/mysql > /dev/null 2>&1 && alias mysql=/usr/bin/mysql
